// import CountChange from "./es6"

// const instance = new CountChange()


// function test (content) {
//   document.querySelector('#app').innerHTML = content
// }

// // setInterval(() => {
//   instance.increment()
//   test(instance.count)
// // }, 1000);

import React from 'react'
import { render } from 'react-dom'
import '../src/style.css'
import '../src/style.mobile'
// const lazy = fn => class extends React.Component {
//   state = {
//     Component: () => null
//   }
//   async componentDidMount() {
//     const { default: Component } = await fn()
//     this.setState({ Component })
//   }
//   render() {
//     const Component = this.state.Component
//     return <Component {...this.props} />
//   }
// }
// // babel6, polyfill Symbol Promise Set Map
// const Async = lazy(()=>import(/* webpackChunkName: "Async" */ './Async'))

const App = () => <div>Appk </div>

render(<App />, document.querySelector('#app'))

if (module.hot) {
  module.hot.accept(App, () => {
    render(<App />, document.querySelector('#app'))
  })
}